#!/usr/bin/env bash
set -e

read -p "删除当前目录下所有的量化模型和中间目录？(Y/N)" ans

if [ "Y" != "${ans^^}" ]
then
    echo "Cancelled."
    exit
fi

echo 'Do quant model clean....'
# v='-v'
v=''
rm ${v} -f *_quant.*
rm ${v} -f first_frame_in_data*.bin
rm ${v} -rf .cache
rm ${v} -rf .forward
rm ${v} -rf .compare
rm ${v} -rf onnx
echo 'Done'
